<%@ Register TagPrefix="forumsAdmin" TagName="Footer" Src="footer.ascx" %>
<%@ Register TagPrefix="forumsAdmin" TagName="Header" Src="header.ascx" %>
<%@ Page Language="c#" debug="true" CodeBehind="ManageRanks.aspx.cs" AutoEventWireup="false" Inherits="AspNetForums.Admin.ManageRanks" %>
<%@ Register TagPrefix="Components" Namespace="AspNetForums.Components" Assembly="AspNetForums.Components" %>
<%@ Register TagPrefix="Forums" Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>
<forumsAdmin:Header runat="server" id="Header1" />
		<form runat="server" ID="frmManageRanks">
			<span class="forumName"><% = ResourceManager.GetString("Rank_Title")%></span>
			<br>
			<span class="forumThread"><% = ResourceManager.GetString("Rank_SubTitle")%></span>
			<p>
				<asp:DataList id="dlManageRanks" runat="server" Width="100%" >
					<HeaderTemplate>
						<TABLE id="tblManageRanks" class="tableBorder" cellSpacing="1" cellPadding="3" width="100%" border="0">
							<TR>
								<TD class="column" width="75px"><% = ResourceManager.GetString("ID") %></TD>
								<TD class="column" width="100px"><% = ResourceManager.GetString("Name")%></TD>
								<TD class="column" width="100px"><% = ResourceManager.GetString("Rank_MinPosts")%></TD>
								<td class="column" width="100px"><% = ResourceManager.GetString("Rank_MaxPosts")%></td>
								<td class="column" width="100%"><% = ResourceManager.GetString("Rank_IconUrl")%></td>
								<td class="column" width="140px" nowrap="true"><% = ResourceManager.GetString("Actions")%></td>
							</TR>
					</HeaderTemplate>
					<FooterTemplate>
						<tr>
							<TD class="f"><% = ResourceManager.GetString("ID")%></TD>
							<TD class="fh">
								<asp:TextBox Runat="server" ID="txtNewRankName"></asp:TextBox></TD>
							<TD class="fh">
								<asp:TextBox Runat="server" ID="txtNewRankMinPost"></asp:TextBox></TD>
							<td class="fh">
								<asp:TextBox Runat="server" ID="txtNewRankMaxPost"></asp:TextBox></td>
							<td class="fh">
								<asp:TextBox Runat="server" ID="txtNewRankIconUrl" Columns=60></asp:TextBox></td>
							<td class="fh">
								<asp:Button ID="CreateSmiley" CommandName="Create" width="60"
									Text='<%# ResourceManager.GetString("Create")%>' Runat=server></asp:Button>
							</td>
						</tr>
						</TABLE>
					</FooterTemplate>
					<ItemTemplate>
						<TR>
							<TD class="f"><%# DataBinder.Eval(Container.DataItem, "RankId") %></TD>
							<TD class="fh"><%# DataBinder.Eval(Container.DataItem, "RankName") %></TD>
							<TD class="fh"><%# DataBinder.Eval(Container.DataItem, "PostingCountMinimum") %></TD>
							<TD class="fh"><%# DataBinder.Eval(Container.DataItem, "PostingCountMaximum") %></TD>
							<TD class="fh">
								<asp:Image Runat="server" Height=19 Width=19 AlternateText='<%# DataBinder.Eval(Container.DataItem, "RankIconUrl") %>' ImageUrl='<%# AspNetForums.Components.Globals.ApplicationPath + "/" + DataBinder.Eval(Container.DataItem, "RankIconUrl") %>' ID="Image1"/>
							</TD>
							<TD class="fh">
								<asp:Button id="EditRank" CommandName="Edit" runat="server" width="60"
									Text='<%# ResourceManager.GetString("Edit")%>'></asp:Button>
								<asp:Button id="DeleteRank" CommandName="Delete" runat="server" width="60" 
									Text='<%# ResourceManager.GetString("Delete")%>'></asp:Button>
							</TD>
						</TR>
					</ItemTemplate>
					<EditItemTemplate>
						<TR>
							<TD class="f"><%# DataBinder.Eval(Container.DataItem, "RankId") %></TD>
							<TD class="fh">
								<asp:TextBox ID="txtRankName" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RankName") %>'>
								</asp:TextBox></TD>
							<TD class="fh">
								<asp:TextBox ID="txtRankMinPost" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "PostingCountMinimum") %>'>
								</asp:TextBox></TD>
							<TD class="fh">
								<asp:TextBox ID="txtRankMaxPost" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "PostingCountMaximum") %>'>
								</asp:TextBox></TD>
							<TD class="fh">
								<asp:TextBox ID="txtRankIconUrl" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RankIconUrl") %>' Columns=60>
								</asp:TextBox></TD>
							<TD class="fh">
								<asp:Button id="UpdateRank" 
									Text='<%# ResourceManager.GetString("Update")%>' runat="server" CommandName="update" width="60"></asp:Button>
								<asp:Button id="CancelRank" 
									Text='<%# ResourceManager.GetString("Cancel")%>' runat="server" CommandName="cancel" width="60"></asp:Button></TD>
						</TR>
					</EditItemTemplate>
				</asp:DataList>
		</form>
<forumsAdmin:Footer runat="server" id="Footer1" />
